- /* srfrrmul.cpp by K.Tsuru */
- // function ID = 812 BRADIX
- /*********************************
- SRational class
- oparator x*y
- (x.num/x.den)*(y.num/y.den)
- **********************************/
- #ifndef SN_H
- #include "sn.h"
- #endif
- SRational RRMult(const SRational& x, const SRational& y){
- SRational z; // z.reduceDone = FALSE;
- if(x.Sign(812) == 0){
- z.SetZero(); return z;
- }
- z.num = x.num*y.num; z.den = x.den*y.den;
- z.reduce(false);
- return z;
- }
srfrrmul.cpp : last modifiled at 2016/06/26 16:27:29(470 bytes)
created at 2016/06/26 15:57:35
The creation time of this html file is 2016/09/18 20:28:04 (Sun Sep 18 20:28:04 2016).